<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="fullscreen">
  <div class="scroll_content">
  <div class="topfixed">
    	<div class="t_left"><a href="/index.php?m=koudai_order&a=my"><i class="back"></i></a></div>
      <div class="t_main">超市订单</div>
       
    </div>
    <div class="paddingheight"></div>
    
    
    <div class="comblock">
      <ul class="order_state_step clearfix">
        <li {if $data.status eq 0}class="cur"{/if}>
          <p><span class="dot"></span> </p>
          <p class="txt">待处理</p>
        </li>
        <li {if $data.status eq 1}class="cur"{/if}>
          <p><span class="dot"></span><span class="line"></span> </p>
          <p class="txt">待发货</p>
        </li>
        
        <li {if $data.status eq 2}class="cur"{/if}>
          <p><span class="dot"></span><span class="line"></span> </p>
          <p class="txt">待完成</p>
        </li>
        <li {if $data.status eq 3}class="cur"{/if}>
          <p><span class="dot"></span><span class="line"></span> </p>
          <p class="txt">已完成</p>
        </li>
         
      </ul>
    </div>
    <div class="comblock">
      <div class="order_state_buy">
       
        <p>下单合计：<span class="red">{$order_product|count}件商品，￥{$data.money}元 </span></p>
        {foreach item=p from=$order_product}
        <p class="spe"><span class="fl">{$p.title}</span><span class="fr">×{if $p.amount_send}{$p.amount_send}{else}{$p.amount}{/if} <span class="red">￥{$p.order_price}</span></span></p>
        {/foreach}
      </div>
    </div>
    <div class="comblock">
      <div class="order_state_info">
        <div class="title">订单信息</div>
        <ul class="list">
          <li></li>
        </ul>
        <ul class="list">
          <li> 订单编号：{$data.orderno}</li>
          <li>下单时间：{$data.dateline|date:Y-m-d H:i:s} </li>
           <li>订单价格：￥{$data.money}</li>
          <li>商品价格：￥{$data.goods_money}</li>
          
          <li>优惠券：￥{$data.coupon_money}</li>
        </ul>
        <ul class="list">
          <li> 联系姓名：{$addr.truename}</li>
          <li>联系电话：{$addr.telephone}</li>
          <li>联系地址：{$addr.p_c_t} 宿舍：{$addr.sushe}  {$addr.address}</li>
        </ul>
        <ul class="list">
          <li> 订单备注：{$data.comment} </li>
        </ul>
         <ul class="list">
          <li> 付款方式：{if $data.unpay}货到付款{else} {$order_ispay[$data.ispay]}   {if !$data.unpay && $data.ispay==1}<a href="/index.php?m=koudai_order&a=pay&order_id={$data.order_id}">去支付</a>{/if}{/if} </li>
          <li>订单状态：{$order_status_list[$data.status]} 
          {if $data.status gt 1 && $data.status lt 4}
           请耐心等待，配送员电话是：{$data.kdy_telephone}
          {/if}
          
          {if $data.status eq 2}
          {if $data.isreceived eq 1}
          <a href="/index.php?m=koudai_order&a=receive&order_id={$data.order_id}">确认收货</a>
          {else}
          已收货
          {/if}
          {/if}
          </li>
        </ul>
    
        {if $data.status eq 0}
        <a href="/index.php?m=koudai_order&a=cancel&order_id={$data.order_id}" class="cart_change_btn">取消订单</a> <br>
        {/if}
        {if $data.status eq 2}
        <a href="tel:{$data.kdy_telephone}" class="cart_change_btn">联系配送员</a> <br>
        {/if}
        {if $data.status eq 3}
       
         {if $data.fenqi && $data.isdz eq 0}
        <a href="/index.php?m=koudai_order&a=duizhang&order_id={$data.order_id}" class="cart_change_btn">去对账</a> <br>
        {/if}
        {/if}
      </div>
     
     
     
     
  
  {include file="footer.html"} </div>
</body>
</html>